package com.school.entity;


public class Person {

    protected String id;
    protected String name;
    protected String gender;


    public Person(String id, String name, String gender) {
        this.id = id;
        this.name = name;
        this.gender = gender;
    }


    public void printWorksheet() {
        System.out.println("=== 工作单 ===");
        System.out.println("ID: " + id);
        System.out.println("姓名: " + name);
        System.out.println("性别: " + gender);
    }


    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getGender() {
        return gender;
    }
}